<%@ Page EnableEventValidation="false" EnableViewState="false" Language="vb" AutoEventWireup="false" CodeFile="productType.aspx.vb" Inherits="pages_ProductTypes_ProductType"
    MasterPageFile="~/pages/default.master"
    Title="Add or Change a ProductType."
    ValidateRequest="False"
%>
<asp:Content ID=t runat=server ContentPlaceHolderID=above>
    <div>
        <asp:DropDownList ID=ddTypes runat=server DataTextField="TypeName" DataValueField="TypeId" AutoPostBack=true />
    </div>
</asp:Content>

<asp:Content ID="c" ContentPlaceHolderID="body" runat="server">

    <uc:FormBegin ID="fb" runat="server" />
        <uc:Textbox  ID="txtTypeName" runat="server" Required="true" Label="Name" />
        <uc:Dropdown ID="ddTypeParentTypeId" Runat="server" Required="false" Label="Parent" Text="Type of Parent" />
        <uc:Checkbox ID="chkTypeParentIsRequired" runat="server" Required="false" Label="Standalone" Text="Parent Is Required" />
        <uc:Checkbox ID="chkTypeIsFree" runat="server" Required="false" Label="Free" Text="Download Links are Shown (no email)" />
        <uc:Checkbox ID="chkTypeCanHaveAudio" runat="server" Required="false" Label="Audio" Text="Can Have Audio" />
        <uc:Checkbox ID="chkTypeCanHavePdfOrWord" runat="server" Required="false"  Label="Pdf/Word" Text="Can Have Pdf Or Word document" />
        <uc:Checkbox ID="chkTypeCanHaveHtmlNotesOrPreview" runat="server" Required="false" Label="Html" Text="Can Have Html Notes or Preview" />
        <uc:Checkbox ID="chkTypeCanHaveVimeo" runat="server" Required="false" Label="Vimeo" Text="Can Have Vimeo" />
        <uc:Checkbox ID="chkTypeCanHaveTranscript" runat="server" Required="false" Label="Transcripts" text="Can Have Transcript" />
        <uc:Textarea ID="txtTypeDescription" runat="server" Required="false" Label="Description" height=100 />
        <uc:FormButtonsBegin ID="fbb" runat="server" />
            <asp:button id="btnSave"    runat="server" text="Update" causesvalidation="True"  />
            <asp:button id="btnDelete"  runat="server" text="Delete" causesvalidation="False" OnClientClick="return confirm('Delete this ProductType?')" />
            <asp:button id="btnCancel"  runat="server" text="Cancel" causesvalidation="False" />
        <uc:FormButtonsEnd   ID="fbe" runat="server" />
    <uc:FormEnd ID="fe" runat="server" />
    
    <asp:ValidationSummary ID="vs" runat="server" ShowSummary="true" EnableClientScript="true" DisplayMode="BulletList" />
</asp:Content>
